import 'package:flutter_deer/generated/json/base/json_convert_content.dart';
import 'package:flutter_deer/account/models/account_summary_entity.dart';


AccountSummaryEntity $AccountSummaryEntityFromJson(Map<String, dynamic> json) {
  final AccountSummaryEntity accountSummaryEntity = AccountSummaryEntity();
  final double? currentScore = jsonConvert.convert<double>(json['currentScore']);
  if (currentScore != null) {
    accountSummaryEntity.currentScore = currentScore;
  }
  final double? freezeScore = jsonConvert.convert<double>(json['freezeScore']);
  if (freezeScore != null) {
    accountSummaryEntity.freezeScore = freezeScore;
  }
  final double? totalGiveScore = jsonConvert.convert<double>(json['totalGiveScore']);
  if (totalGiveScore != null) {
    accountSummaryEntity.totalGiveScore = totalGiveScore;
  }
  final double? totalTakeOutScore = jsonConvert.convert<double>(json['totalTakeOutScore']);
  if (totalTakeOutScore != null) {
    accountSummaryEntity.totalTakeOutScore = totalTakeOutScore;
  }
  final double? allowTakeOutScore = jsonConvert.convert<double>(json['allowTakeOutScore']);
  if (allowTakeOutScore != null) {
    accountSummaryEntity.allowTakeOutScore = allowTakeOutScore;
  }
  final double? allowAntiWaveBettingScore = jsonConvert.convert<double>(json['allowAntiWaveBettingScore']);
  if (allowAntiWaveBettingScore != null) {
    accountSummaryEntity.allowAntiWaveBettingScore = allowAntiWaveBettingScore;
  }
  final double? allowPositiveWaveBettingScore = jsonConvert.convert<double>(json['allowPositiveWaveBettingScore']);
  if (allowPositiveWaveBettingScore != null) {
    accountSummaryEntity.allowPositiveWaveBettingScore = allowPositiveWaveBettingScore;
  }
  return accountSummaryEntity;
}

Map<String, dynamic> $AccountSummaryEntityToJson(AccountSummaryEntity entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['currentScore'] = entity.currentScore;
  data['freezeScore'] = entity.freezeScore;
  data['totalGiveScore'] = entity.totalGiveScore;
  data['totalTakeOutScore'] = entity.totalTakeOutScore;
  data['allowTakeOutScore'] = entity.allowTakeOutScore;
  data['allowAntiWaveBettingScore'] = entity.allowAntiWaveBettingScore;
  data['allowPositiveWaveBettingScore'] = entity.allowPositiveWaveBettingScore;
  return data;
}